package src.netty.rpc.consumer;

import src.netty.rpc.netty.MyNettyClient;
import src.netty.rpc.pulicinterface.OrderService;

/**
 * @author jack.wu
 * @version 1.0
 * @date 2020-06-13
 */
public class ClientBootStrap {

    private static final String PROTOCOL = "dubbo#";

    public static void main(String[] args) {

        MyNettyClient client = new MyNettyClient();
        OrderService orderService = (OrderService) client.getBean(OrderService.class, PROTOCOL);
        String order = orderService.getOrder(00001L);
        System.out.println("调用结果：" + order);
    }
}
